package com.yrj.shopping;


class Product {
    private static String sort;
    private String name;
    private double price;
    private int num;
    public Product(String sort, String name, double price, int num) {
        this.sort = sort;
        this.name = name;
        this.price = price;
        this.num = num;
    }
    public String getSort() {
        return sort;
    }
    public void setSort(String sort) {
        this.sort = sort;
    }
    public String getName() {
        return name;
    }
    public void setName(String name) {
        this.name = name;
    }
    public double getPrice() {
        return price;
    }
    public void setPrice(double price) {
        this.price = price;
    }
    public int getNum() {
        return num;
    }
    public void setNum(int num) {
        this.num = num;
    }



    public static String[] productSort = {"饮品","速食","零食","水果","熟食"};
//    public static String[] drink = {"雪碧","可乐","酸奶"};
//    public static float[] drinkPrice = {3.0F, 3.0F, 4.5F};
//    public static String[] fastFood = {"速冻水饺","方便面","汤圆"};
//    public static float[] fastFoodPrice = {15.0F, 3.5F, 13.5F};
//    public static String[] snacks = {"果冻","辣条","干吃面"};
//    public static float[] snacksPrice = {3.0F, 1.5F, 3.5F};
//    public static String[] fruit = {"苹果","香蕉","梨","丑橘","石榴","柚子"};
//    public static float[] ftuitPrice = {1.7F, 2.1F, 3.5F, 5.0F, 5.5F, 1.5F};
//    public static String[] cookedFood = {"淀粉肠","鸡腿","鸡肉卷","汉堡","包子"};
//    public static float[] cookedFoodPrice = {1.5F, 3.0F, 3.5F, 5.0F, 3.5F};

    public static void productSort() {
        for(String category : productSort) {
            System.out.println(category);
        }
    }
}
